﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Windows;
//using System.Windows.Media;

//namespace VideoMagic
//{
//    public static class MatrixMagic
//    {
//        public static Matrix GetTransformationMatrixFromRect(Rect startRectangle, Point topLeft, Point topRight, Point bottomLeft, Point bottomRight)
//        {
//            double offsetX = topLeft.X;
//            double offsetY = topLeft.Y;

//            //double newHeight = rectangle.

//            double m11 = 1;
//            double m12 = 0;
//            double m21 = 0;
//            double m22 = 1;

//            return new Matrix(m11, m12, m21, m22, offsetX, offsetY);
//        }
//    }
//}
